package com.feihong.common.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NonNull;
import org.springframework.stereotype.Component;

import java.util.Date;

@Data
@Component
public class DefaultEntity {
//    @NonNull
    private Long id;
    @JsonFormat(pattern = "yyyy-mm-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private String createBy;
    @JsonFormat(pattern = "yyyy-mm-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    private String updateBy;
}
